package com.xuecheng.content.model.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.xuecheng.base.exception.ValidationGroups;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;

/**
 * @ClassName: AddCourseTeacherDto
 * @Description: 添加课程教师类
 * @Author: Huang Yao
 * @CreateTime: 2024-06-26 11:01
 * @Version: 1.0
 **/
@Data
public class AddCourseTeacherDto {
    //课程教师id
    @ApiModelProperty(value = "课程教师id", required = true)
    private Long id;
    /**
     * 课程标识
     */
    @TableField("course_id")
    @NotEmpty(message = "课程id不能为空")
    @ApiModelProperty(value = "课程id", required = true)
    private Long courseId;

    /**
     * 教师标识
     */
    @NotEmpty(message = "教师名称不能为空")
    @TableField("teacher_name")
    @ApiModelProperty(value = "教师名称", required = true)
    private String teacherName;

    /**
     * 教师职位
     */
    @NotEmpty(message = "教师职位不能为空")
    @TableField("position")
    @ApiModelProperty(value = "教师职位名称", required = true)
    private String position;

    /**
     * 教师简介
     */
    @TableField("introduction")
    @ApiModelProperty(value = "教师简介")
    private String introduction;

    /**
     * 照片
     */
    @TableField("photograph")
    @ApiModelProperty(value = "教师图片")
    private String photograph;
}
